//
//  EFengDepListButton.m
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/2/17.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import "EFengDepListButton.h"

@implementation EFengDepListButton

- (void)setDepModel:(CDepartmentModel *)depModel
{
    _depModel = depModel;
    [self setTitle:depModel.DepartName forState:UIControlStateNormal];
    [self setTitleColor:RGBCOLORWITH16COLOR(0x818181) forState:UIControlStateNormal];
    self.titleLabel.font = Font14;
    
    CGSize btnsize = [depModel.DepartName sizeWithFont:Font14 maxSize:CGSizeMake(MAXFLOAT, Font14.lineHeight)];
    self.width = btnsize.width;
}

@end
